package com.education.wisdom.controller;


import com.education.common.config.BusinessException;
import com.education.common.config.CommonErrorCode;
import com.education.common.utils.ApiReturnObject;
import com.education.wisdom.pojo.LessonMenu;
import com.education.wisdom.service.LessonMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 教师私有备课目录表
 *
 * @date 2020-07-09 14:51:34
 */
@RestController
@RequestMapping("/web/lessonMenu")
public class FullLessonMenuController {

    @Autowired
    private LessonMenuService lessonMenuService;

    /**
     * 查询
     *
     * @return
     */
    @GetMapping("/menu")
    public ApiReturnObject search(LessonMenu lessonMenu) {
        List<LessonMenu> lessonMenuList = lessonMenuService.selectLessonMenuList(lessonMenu);
        return new ApiReturnObject("200", "success", lessonMenuList);
    }


}
